import instance from "@/tools/axios";

const getDictionaryTypePagination = async (params: any) => {
  return await instance.get("/SysDictionaryTypes/Pagination", params);
};

const addDictionaryType = async (data: any) => {
  return await instance.post("/SysDictionaryTypes/Add", data);
};

const updateDictionaryType = async (data: any) => {
  return await instance.post(`/SysDictionaryTypes/Update`, data);
};

const deleteDictionaryType = async (id: string) => {
  return await instance.post(`/SysDictionaryTypes/Delete`, { id: id });
};

export {
  getDictionaryTypePagination,
  addDictionaryType,
  updateDictionaryType,
  deleteDictionaryType,
};
